// Vinyl Module
import subumbo.audio.core.AudioEngine;




private function onVinylMouseDown():void
{
	_scratchDelta = this.mouseY;
	_scratching = true;	
}

private function onVinylMouseUp():void
{
	_scratching = false;
	_scratchDelta * 50;
	_controller.pitch(1.0);
}

private function onVinylMouseOut():void
{
	_scratching = false;
	_scratchDelta * 50;
}
private function updatePlate():void
{
	_scratchDelta -= this.mouseY;
	_scratchDelta * _sensitivity; 	
	vinyl.rotation -= (_speed - _scratchDelta);
	trace(_scratchDelta)
	updateAudio(_scratchDelta);
	_scratchDelta = this.mouseY;
}

private function updateAudio(dS:Number):void
{
	dS = Math.min(Math.max(dS,dS+1), dS-1);
	_controller.pitch(dS/15);
}